package com.xge.component_caipu.binder

import com.bumptech.glide.Glide
import com.xge.common_libary.bean.Material
import com.xge.common_libary.bean.Proces
import com.xge.common_libary.view.utils.BaseBindingBinder
import com.xge.common_libary.view.utils.BindingViewHolder
import om.xge.component_caipu.databinding.ItemBuzhouContentBinding
import om.xge.component_caipu.databinding.ItemCailiaoContentBinding

class ItemBuZhouContentBinder :
    BaseBindingBinder<Proces, ItemBuzhouContentBinding>(ItemBuzhouContentBinding::inflate) {
    override fun onBindViewHolder(
        holder: BindingViewHolder<Proces, ItemBuzhouContentBinding>, item: Proces
    ) {
        holder.run {
            binding.tvPcontent.text = item.pcontent
            Glide.with(context).load(item.pic).into(binding.ivCover)
        }
    }
}